package com.aiyige.model.response;

import java.util.List;

/**
 * Created by zhuyakun on 2017/11/28.
 */

public class QueryTypeNoticesResponse {
    public long code;
    public String message;
    public Data data;

    public static class Data {
        public long offset;
        public long limit;
        public long total;
        public long size;
        public long pages;
        public long current;
        public boolean searchCount;
        public boolean openSort;
        public String orderByField;
        public List<Record> records = null;
        public String condition;
        public boolean asc;
        public long offsetCurrent;
    }


    public static class Record {
        public static final String OBJECT_TYPE_GOODS = "goods";
        public static final String OBJECT_TYPE_ORDER = "order";
        public static final String OBJECT_TYPE_OTHERS = "others";
        public static final String OBJECT_TYPE_COMMENT = "comment";
        public long id;
        public long type;
        public String content;
        public String from;
        public String fromName;
        public String fromAvatar;
        public long to;
        public long objectId;
        public String objectType;
        public String title;
        public long createTime;
        public Goods goods;
        public Order order;
        public Comment comment;
    }


    public static class Goods {
        public static final int TYPE_PHOTO = 1;
        public static final int TYPE_VIDEO = 2;
        public static final int TYPE_INFO = 3;
        public static final int TYPE_SPECIAL_TOPIC = 4;
        public static final int TYPE_LEARN_VDIEO = 5;
        public static final int TYPE_MAJOR_COURSE = 6;
        public static final int TYPE_TRAING_CARD = 7;
        public static final int TYPE_PERSONAL_TRAINER = 8;

        public long id;
        public String goodsId;
        public long version;
        public int type;
        public String detail;
        public String cover;
        public String title;
        public String categoryId;
        public long createTime;
        public long status;
        public long videosNum;
    }


    public static class Order {
        public static final int ORDER_STATUS_NOPAY = 0;
        public static final int ORDER_STATUS_PAYED = 1;
        public static final int ORDER_STATUS_CANCEL = 2;
        public static final int ORDER_STATUS_WAITING_SHIP = 3;
        public static final int ORDER_STATUS_WAITING_AFFIRM = 4;
        public static final int ORDER_STATUS_CONFIRMED = 5;
        public static final int ORDER_STATUS_SALES_RETURN = 6;
        public static final int ORDER_STATUS_HAVE_TO_RETURN = 7;

        public long code;
        public int status;
        public long goodsId;
        public long goodsVersion;
    }

    public static class Comment {
        public String id;
        public String content;
        public long userId;
        public long targetId;
        public long targetType;
        public long createTime;
        public CommentFor commentFor;
        public String user;
    }

    public static class CommentFor {
        public String user;
        public String content;
    }
}
